<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="${staticServer}/inc/style/main.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/page.css" />
<link rel="stylesheet" href="${staticServer}/css/work_today.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/date/datepicker.css" />
<link rel="stylesheet" href="${staticServer}/css/consultant_client_tracking.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/date/datepicker.css" />
<link rel="stylesheet" href="${staticServer}/css/consultant_client.css" />
<link rel="stylesheet" href="${staticServer}/css/consultant_client_tracking.css" />
<link rel="stylesheet" href="${staticServer}/css/consultant_student_read.css" />
<script src="${staticServer}/inc/js/jquery.js"></script>
<script src="${staticServer}/inc/js/pageset.js"></script>
<script src="${staticServer}/inc/js/model_resp.js"></script>
<script src="${staticServer}/inc/js/datepicker.js"></script>
<script src="${staticServer}/inc/js/htmlfilter.js"></script>
<script src="${staticServer}/inc/js/submitter.js"></script>
<script src="${staticServer}/inc/js/tips.js"></script>
<style type="text/css">
#statelist label {
	display: block;
	float: left;
	width: 120px;
}
</style>
<script>
$(function(){
});

function submit(){
	window.location.href="${contextPath}/index/cul_count_statis.htm?startTime="+$("#startTime").val()+"&endTime="+$("#endTime").val();
}
</script>
</head>

<body>
<input type="hidden" id="keyname" value="">
<input type="hidden" id="traId" value="">
	<div id="home_link">
		<ul>
			<li></li>
			<li>&gt;</li>
			<li>咨询师模块</li>
			<li>&gt;</li>
			<li class="current">客户资源列表</li>
		</ul>
	</div>
	<div id="container">
		<div id="title"></div>
		<table class="form_table">
			<tr>
				<td>
					<div style="overflow: hidden;">
						<label><b>查询条件：</b></label>
						<label for="start_date">起始日期：</label>
						<input type="text" id="startTime" size="15" value="${startTime}" rel="DATE::Y-m-d" /> 
						<input type="text" id="endTime" size="15" value="${endTime}" rel="DATE::Y-m-d" /> 
						<input type="button" value=" 查 询 " onclick="submit()" />
					</div>
				</td>
			</tr>
		</table>
		<table style="width:1000px;">
			<tr class="fields">
				<th>老师姓名</th>
				<th>中心地址</th>
				<th>缴费日期</th>
				<th>学员姓名</th>
				<th>详情</th>
				<th>课程个数</th>
				<th>业绩</th>
				<th>提点</th>
				<th>奖金</th>
			</tr>
			<#if list??>
				<#list list as list>
				<#assign  count=0.0/>
				<#assign  moneys=0.0/>
				<#assign  tidian=0.0/>
				<#assign  tidian1=0.0/>
				<#assign  normal=0.0/>
				<#assign  spec=0.0/>
				<#list list.list as mlist>
					<tr class="even_row">
						<#assign count=count+mlist.kc_count/>
						<#assign moneys=moneys+mlist.moneys/>
						
				         
						<td align="center">${list.nickname}</td>
						<td align="center">${list.center}</td>
						<td align="center">${mlist.moneyDate}</td>
						<td align="center">${mlist.stu_name}</td>
						<td align="center">${mlist.kc_msg}</td>
						<td align="center">${mlist.kc_count}</td>
						<td align="center">${mlist.moneys}<#assign  money1=mlist.moneys/></td>
						<td align="center"><#if (list.zhuanz_date?date("yyyy-MM-dd") gte mlist.moneyDate?date("yyyy-MM-dd"))>3<#assign  tidian1=0.03/><#else><#assign  normal=normal+mlist.moneys/>
						
						</#if></td>
						<td align="center"><#if (list.zhuanz_date?date("yyyy-MM-dd") gte mlist.moneyDate?date("yyyy-MM-dd"))>${money1*tidian1}<#assign  spec=spec+money1*tidian1/><#else></#if></td>
            		</tr>
            	</#list>
            		<#if count!=0>
            			<tr class="even_row">
							<td align="center">总计</td>
							<td align="center"></td>
							<td align="center">${spec}</td>
							<td align="center"></td>
							<td align="center"></td>
							<td align="center">${count}</td>
							<td align="center">${moneys}</td>
							<td align="center">
								<#if count &gt; 0 && count &lt; 1>
								
								
								0.5
									<#assign  tidian=0.5/>
							
									
								<#elseif count gte 1 && count &lt; 2>
									1.5
									<#assign  tidian=1.5/>
								<#elseif count gte 2 && count &lt; 4>
									2.5
									<#assign  tidian=2.5/>
								<#elseif count gte 4 && count &lt; 6>
									3.5
									<#assign  tidian=3.5/>
								<#elseif count gte 6 && count &lt; 7>
									4
									<#assign  tidian=4/>
								<#elseif count gte 7 && count &lt; 8>
									4.5
									<#assign  tidian=4.5/>
								<#elseif count gte 8 && count &lt; 11>
									5
									<#assign  tidian=5/>
								<#elseif count gte 11 && count &lt; 18>
									5.5
									<#assign  tidian=5.5/>
								<#elseif count gte 18>
									6
									<#assign  tidian=6/>
								</#if>
							</td>
							<td align="center">
								${tidian*normal/100 + spec}
							</td>
            			</tr>
            		</#if>
            	</#list>
			</#if>
		</table>
	</div>
	<div class="emptyline"></div>
	
</body>
</html>